//
//  ServiceListApi.m
//  classicFilms
//
//  Created by monkey on 2017/4/25.
//  Copyright © 2017年 Stefan Arn. All rights reserved.
//

#import "ServiceListApi.h"

@implementation ServiceListApi
{
    NSString *_cate;
    NSString *_type;
    NSString *_type_id;
}

-(instancetype)initWithCate:(NSString *)cate type:(NSString *)type type:(NSString *)type_id{
    self = [super init];
    if (self) {
        
        _cate = cate;
        _type = type;
        _type_id = type_id;

    }
    return self;
}

- (NSString *)requestUrl {
    return [NSString stringWithFormat:@"/craftsmans"];
}

-(id)requestArgument{
    return @{
             @"cate":_cate,
             _type: _type_id,
             };
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodGET;
}

- (Class)responseClass{
    return [ServiceListResponse class];
}

@end
